import type { App } from 'vue'

import {
  BasicCard,
  BasicCopy,
  BasicDialog,
  BasicDict,
  BasicEcharts,
  BasicEditor,
  BasicEmpty,
  BasicIcon,
  BasicImageVerify,
  BasicLabelValue,
  BasicMessageBox,
  BasicMore,
  BasicPagination,
  BasicRangeDate,
  BasicRemoteSearch,
  BasicSearchInput,
  BasicStatusText,
  BasicSwitch,
  BasicSwitchButton,
  BasicTableLayout,
  BasicTips,
  BasicTipsBar,
  BasicTitle
} from './application'
import { StrongSearch } from './business'
const overallComponents = {
  BasicCard,
  BasicCopy,
  BasicDialog,
  BasicDict,
  BasicEcharts,
  BasicEditor,
  BasicEmpty,
  BasicIcon,
  BasicImageVerify,
  BasicLabelValue,
  BasicMessageBox,
  BasicMore,
  BasicPagination,
  BasicRangeDate,
  BasicRemoteSearch,
  BasicSearchInput,
  BasicStatusText,
  BasicSwitch,
  BasicSwitchButton,
  BasicTableLayout,
  BasicTips,
  BasicTipsBar,
  BasicTitle,
  StrongSearch
}
//使用此方式 提升可维护性
export default {
  install(app: App) {
    Object.keys(overallComponents).forEach(key => {
      app.component(key, overallComponents[key])
    })
  }
}
